import request from "@/utils/request";

// 查询材料计量期号列表
export function listMaterialMeasureQh(query) {
  return request({
    url: "/ma/materialMeasureQh/list",
    method: "get",
    params: query
  });
}
// 查询材料计量期号列表（不分页）
export function allListMaterialMeasureQh(query) {
  return request({
    url: "/ma/materialMeasureQh/allList",
    method: "get",
    params: query
  });
}
// 查询材料计量期号详细
export function getMaterialMeasureQh(measureQhId) {
  return request({
    url: "/ma/materialMeasureQh/" + measureQhId,
    method: "get"
  });
}
// 获取最新期号
export function queryLastQh(query) {
  return request({
    url: "/ma/materialMeasureQh/lastQh",
    method: "get",
    params: query
  });
}
// 新增材料计量期号
export function addMaterialMeasureQh(data) {
  return request({
    url: "/ma/materialMeasureQh",
    method: "post",
    data: data
  });
}

// 修改材料计量期号
export function updateMaterialMeasureQh(data) {
  return request({
    url: "/ma/materialMeasureQh",
    method: "put",
    data: data
  });
}

// 删除材料计量期号
export function delMaterialMeasureQh(measureQhId) {
  return request({
    url: "/ma/materialMeasureQh/" + measureQhId,
    method: "delete"
  });
}
